#!/usr/bin/env puma
directory '/web/my_project/current'
rackup "/web/my_project/current/config.ru"
environment 'production'
pidfile "/web/my_project/shared/tmp/pids/puma.pid"
state_path "/web/my_project/shared/tmp/pids/puma.state"
stdout_redirect '/web/my_project/shared/log/puma_access.log', '/web/my_project/shared/log/puma_error.log', true
threads 1,1
# bind 'tcp://0.0.0.1:5002'
bind 'unix:///web/my_project/shared/tmp/sockets/puma.sock'
workers 1
prune_bundler
on_restart do
   puts 'Refreshing Gemfile'
   ENV["BUNDLE_GEMFILE"] = "/web/my_project/current/Gemfile"
end